/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.Calendar;

/**
 * <p>Project: jse2204 - If02
 * <p>Powered by webrx On 2022-09-02 14:17:54
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class If02 {
    public static void main(String[] args) {

        //1 日期日  2 星期一 7 星期六
        var c = Calendar.getInstance();
        c.add(Calendar.DATE,2);
        var k = c.get(Calendar.DAY_OF_WEEK);

        if (k == 1) {
            System.out.println("星期日");
        } else if (k == 2) {
            System.out.println("星期一");
        } else if (k == 3) {
            System.out.println("星期二");
        } else if (k == 4) {
            System.out.println("星期三");
        } else if (k == 5) {
            System.out.println("星期四");
        } else if (k == 6) {
            System.out.println("星期五");
        } else {
            System.out.println("星期六");
        }

    }
}
